/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2023-03-22
 * Time: 23:06
 */
public class Main {
    public static void main(String[] args) {
        AVLTree avlTree=new AVLTree();
        int[] arr={30,20,90,60,180,40};
        for (int i = 0; i < arr.length; i++) {
            avlTree.insert(arr[i]);
        }
        avlTree.inOrder(avlTree.root);
        System.out.println();
        System.out.println(avlTree.isBalanced(avlTree.root));

    }
}
